projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2bd25c
)
(diary-entry-time): Fix typo/bug:
author
Thien-Thi Nguyen
<ttn@gnuvola.org>
Sat, 17 Jan 2004 13:46:09 +0000
(13:46 +0000)
committer
Thien-Thi Nguyen
<ttn@gnuvola.org>
Sat, 17 Jan 2004 13:46:09 +0000
(13:46 +0000)
Remove spurious left square bracket in XX:XXam regexp.
lisp/calendar/diary-lib.el
patch
|
blob
|
history
diff --git
a/lisp/calendar/diary-lib.el
b/lisp/calendar/diary-lib.el
index 28fcb50ef142b3c91d23de6592b90c9eb1ac71e3..d2a0075fb7116704c3d84160509e78835839a7fd 100644
(file)
--- a/
lisp/calendar/diary-lib.el
+++ b/
lisp/calendar/diary-lib.el
@@
-1118,7
+1118,7
@@
be used instead of a colon (:) to separate the hour and minute parts."
(if (equal ?a (downcase (aref s (match-beginning 2))))
0 1200)))
((string-match ; Hour and minute XX:XXam or XX:XXpm
- "\\`[ \t\n\\^M]*\\([0-9]?[0-9]\\)[:.]
[
\\([0-9][0-9]\\)\\([ap]\\)m\\>" s)
+ "\\`[ \t\n\\^M]*\\([0-9]?[0-9]\\)[:.]\\([0-9][0-9]\\)\\([ap]\\)m\\>" s)
(+ (* 100 (% (string-to-int
(substring s (match-beginning 1) (match-end 1)))
12))